package com.lwq.model.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lwq.model.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/10
 */
@Data
@TableName(value="sys_dict_detail")
public class SysDictDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String DICT_ID = "dict_id";

    public static final String NAME = "name";

    public static final String VALUE = "value";

    public static final String DISABLED = "disabled";

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @NotNull
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dictId;

    @NotNull
    private String name;

    @NotNull
    private String value;

    @NotNull
    private Integer sort;

    @NotNull
    private String disabled;

    private String remarks;
}
